package com.atguigu.day14.morning.m2;
/*
混合初始化:
    先类再实例
    先父再子
    2 1 3 6 4 8 7 A 9
    2 3 7 8 1 6 4 6 A 9 + 2
    2 3 7 8 1 6 4 6 A 9



 */
public class Animal {
    {
        System.out.println("Animal 普通代码块 1");
    }
    static {
        System.out.println("Animal 静态代码块 2");
    }
    static  int age = getAge();

    public static int getAge() {
        System.out.println("Animal getAge 3");
        return 10;
    }
    public Animal(){
        super();
        System.out.println("Animal无参 4");
    }
    String name = getName();

    public String getName() {
        System.out.println("Animal getName 5");
        return "旺财";
    }
}
